package com.tbit.uqbike.webmanager.controller;

import com.tbit.uqbike.object.value.LoginInfo;
import com.tbit.uqbike.object.view.JsonResult;
import com.tbit.uqbike.service.base.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/auth")
public class AuthController extends BaseController {


    @Autowired
    private AuthService authService;


    /**
     * @description: 初始化账户的客服电话号码进新架构
     * @author: mo.shanyong
     * @date: 2025/1/6 15:12
     * @return: com.tbit.uqbike.object.view.JsonResult
     */
    @RequestMapping("/initAccountTelToNew")
    public JsonResult initAccountTelToNew(HttpServletRequest request){
        //调用业务层
        LoginInfo info = getLogin(request);
        authService.initAccountTelToNew(info);
        return JsonResult.ok();
    }
}
